package com.ybwh.springboot2.satoken.model.entity;

import com.alibaba.fastjson.JSON;
import com.gitee.fastmybatis.annotation.Pk;
import com.gitee.fastmybatis.annotation.PkStrategy;
import com.gitee.fastmybatis.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 
* @author Fan Beibei
* @date   2025-08-03 00:54:02
*/
@Data
@Table(name = "sys_role",pk = @Pk(name = "id", strategy = PkStrategy.NONE))
public class SysRole implements Serializable {


	@ApiModelProperty(value="主键")
	private Long id;

	@ApiModelProperty(value="角色名称")
	private String roleName;

	@ApiModelProperty(value="角色类型")
	private String type;

	@ApiModelProperty(value="备注")
	private String remark;

	@ApiModelProperty(value="创建时间")
	private LocalDateTime createTime;

	@ApiModelProperty(value="创建人")
	private Long createId;

	@ApiModelProperty(value="更新时间")
	private LocalDateTime updateTime;

	@ApiModelProperty(value="更新人")
	private Long updateId;


	// 列名常量
	public static final String ID = "id";
	public static final String ROLE_NAME = "role_name";
	public static final String TYPE = "type";
	public static final String REMARK = "remark";
	public static final String CREATE_TIME = "create_time";
	public static final String CREATE_ID = "create_id";
	public static final String UPDATE_TIME = "update_time";
	public static final String UPDATE_ID = "update_id";


	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

}